<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0" />

    <script src="jquery-1.11.2.min.js"> </script>
    <script src="copy2clipboard.js"></script>
</head>
<body>
<button class="nav">
点击复制
</button>
<textarea id="textCon1" readonly="readonly" cols="40" rows="5"  style="    border: 0;
    color: white;">
http://baihuo.yukexx.com/DeZhong/user/invite.do
</textarea>
<script>
    var id="1111";
    var url="http://baihuo.yukexx.com/DeZhong/user/invite.do?myInvitorId=";
    url+=id;
    console.info(url);
    $("#textCon1").html(url);
    $(".nav").click(function(){
        select_all_and_copy(document.getElementById('textCon1'));
    })



</script>
</body>
</html>